﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
             xmlns:ctrl="clr-namespace:MediaOwl.Common.ControlTemplates"
             x:Class="MediaOwl.Common.Views.DialogBusyView"
             mc:Ignorable="d"
             d:DesignHeight="134"
             d:DesignWidth="385">
    <ctrl:DialogControl Title="{Binding DisplayName}">
        <toolkit:DockPanel>
            <Button x:Name="Cancel"
                    Content="Cancel"
                    Width="75"
                    toolkit:DockPanel.Dock="Bottom"
                    HorizontalAlignment="Right"
                    Visibility="{Binding HasCancel, Converter={StaticResource visibilityConverter}}" />
            <ProgressBar toolkit:DockPanel.Dock="Bottom"
                         Height="15"
                         Margin="0,0,0,10"
                         IsIndeterminate="{Binding IsIndeterminate, FallbackValue=True}"
                         Value="{Binding Percentage}" />
            <TextBlock TextWrapping="Wrap"
                       Text="{Binding BusyMessage}"
                       toolkit:DockPanel.Dock="Top"
                       Margin="0,0,0,10"
                       Visibility="{Binding HasMessage, Converter={StaticResource visibilityConverter}}">

            </TextBlock>
        </toolkit:DockPanel>
    </ctrl:DialogControl>
</UserControl>
